package learn.test;

import lombok.SneakyThrows;

/**
 * @Description
 * @User zero
 * @Datetime 2021/4/26 21:32
 */
public abstract class Task implements Runnable {


    @SneakyThrows
    @Override
    public void run() {
        while (true){
            loop();
            Thread.sleep(3);
        }
    }

    abstract void loop();
}
